<?php
namespace app\admin\validate;
use think\Validate;

class Admin extends Validate{
    protected  $rule = [
        ['username' , 'require|max:10' , '用户名不能为空|用户名不能超过10个字符'],
        ['password', 'require|alphaNum', '密码不能为空|密码只能为英文字母和数字'],
        ['captcha', 'require|captcha'],
    ];
}